<template>
  <div>
    <h2>我是爷爷</h2>
    <div>我说： {{ word }}</div>
    <Son></Son>
    <Son2></Son2>
  </div>
</template>

<script setup lang='ts'>
import { ref, reactive, provide } from 'vue'

import Son from './son.vue'
import Son2 from './son2.vue'

let word = ref<string>('嗨嗨嗨，爷叫涛桑')
// key，value 形式定义
provide('word', word)
</script>
<style scoped>
</style>